<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title><?php echo $this->_tpl_vars['softtitle'] ?></title>
<link href="templates/css/baselist.css" rel="stylesheet" type="text/css" />
<link href="templates/css/all.css" rel="stylesheet" type="text/css" />
<link href="templates/css/clickmenu.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/control.js"></script>
<script type="text/javascript" src="js/form.js"></script>
<script type="text/javascript">

	var resizewindow= null;

	window.onresize = function(){
		var h = $(window).height();
		if(resizewindow!=h){
			sizewindow();
			resizewindow=h;
		}
	}

	function sizewindow(){
		var h = $(window).height();
		if(document.getElementById("mainbodyauto")){
			$('.manageadd').css({height:h-40});
			$('.manageedit').css({height:h-40});
		}
	}
	var typemanage_type_add_upid  = "<?php echo $this->_tpl_vars['ST']['typemanage_type_add_upid'] ?>";
	var typemanage_js_noselect_empty  = "<?php echo $this->_tpl_vars['ST']['typemanage_js_noselect_empty'] ?>";
	var typemanage_js_typename_empty  = "<?php echo $this->_tpl_vars['ST']['typemanage_js_typename_empty'] ?>";
	var typemanage_js_dirname_empty  = "<?php echo $this->_tpl_vars['ST']['typemanage_js_dirname_empty'] ?>";
	var typemanage_js_widthhieht_empty  = "<?php echo $this->_tpl_vars['ST']['typemanage_js_widthhieht_empty'] ?>";
	var typemanage_js_template_empty  = "<?php echo $this->_tpl_vars['ST']['typemanage_js_template_empty'] ?>";
	var typemanage_js_typeurl_empty  = "<?php echo $this->_tpl_vars['ST']['typemanage_js_typeurl_empty'] ?>";
	var typemanage_js_type_shift_typeselect_err  = "<?php echo $this->_tpl_vars['ST']['typemanage_js_type_shift_typeselect_err'] ?>";
	var typemanage_js_type_edit_ok = "<?php echo $this->_tpl_vars['ST']['typemanage_js_type_edit_ok'] ?>";
	var typemanage_js_type_edit_no = "<?php echo $this->_tpl_vars['ST']['typemanage_js_type_edit_no'] ?>";
	var iframename = "<?php echo $this->_tpl_vars['iframename'] ?>";
	$(document).ready(function(){
		var h = $(window).height();
		$('.manageadd').css({height:h-40});
		var options = {
			beforeSubmit: formverify,
			success:saveResponse
		}
		$('#typeedit').submit(function() {
			$(this).ajaxSubmit(options);
			return false;
		});
	})




	function formverify(formData) {
		var queryString = $.param(formData);
		var get=urlarray(queryString);
		if(get['inputupid']!=0){
			if(get['upid']==0){
				document.typeedit.upid.focus();
				alert(typemanage_type_add_upid+typemanage_js_noselect_empty);
				return false;
			}
			if(get['upid']==get['tid']){
				document.typeedit.upid.focus();
				alert(typemanage_js_type_shift_typeselect_err);
				return false;
			}
		}
		if(get['typename']==''){
			document.typeedit.typename.focus();
			alert(typemanage_js_typename_empty);
			return false;
		}
		if(get['width']!='' || get['height']!=''){
			if(get['width'].match(/^[0-9]+$/ig)==null || get['height'].match(/^[0-9]+$/ig)==null ) {
				document.typeedit.width.focus();
				alert(typemanage_js_widthhieht_empty);
				return false;
			}
		}
		if(get['styleid']==1 || get['styleid']==2 || get['styleid']==4){
			if(get['template'].match(/^[\w]+$/ig)==null || get['readtemplate'].match(/^[\w]+$/ig)==null || get['filenamestyle'].match(/^[\{\}\w-]+$/ig)==null || get['readnamestyle'].match(/^[\{\}\w-]+$/ig)==null ) {
				document.typeedit.template.focus();
				alert(typemanage_js_template_empty);
				return false;
			}
		}else{
			if(get['typeurl'].match(/^http:\/\/[a-zA-Z.0-9-%&?=/_]+$/ig)==null) {
				document.typeedit.typeurl.focus();
				alert(typemanage_js_typeurl_empty);
				return false;
			}
		}
		parent.windowsdig('Loading','iframe:index.php?archive=management&action=load','400px','180px','iframe',false);
	}
	function saveResponse(options){
		parent.closeifram();
		if (options=='true'){
			parent.frames[iframename].refresh('selectform','selectall','check_all');
			alert(typemanage_js_type_edit_ok);
		}else{
			alert(typemanage_js_type_edit_ok);
		}
		parent.onaletdoc()
	}
</script>
</head>

<body>
<form name="typeedit" id="typeedit" method="post" action="index.php?archive=typemanage&action=typesave">
	<input type="hidden" name="inputclass" value="edit">
	<input type="hidden" name="tid" value="<?php echo $this->_tpl_vars['typeread']['tid'] ?>">
	<input type="hidden" name="inputupid" id="inputupid" value="<?php echo $this->_tpl_vars['typeread']['upid'] ?>">
	<input type="hidden" name="topid" value="<?php echo $this->_tpl_vars['typeread']['topid'] ?>">
	<input type="hidden" name="lng" value="<?php echo $this->_tpl_vars['typeread']['lng'] ?>">
	<div id="mainbodyauto" class="manageadd">
		<div class="maindobycontent">
			<!--查看已选择的类型-->
			<div class="suggestion">
				<span class="sugicon"><span class="strong colorgorning2"><?php echo $this->_tpl_vars['ST']['position_title'] ?></span><span class="colorgorningage"><?php echo $this->_tpl_vars['ST']['typemanage_type_edit_mess'] ?> <u><?php echo $this->_tpl_vars['typeread']['typename'] ?></u></span></span>
			</div>
			<div class="sugtitle">
				<span class="sugtitleicon"><span class="strong colorgorning2"><?php echo $this->_tpl_vars['ST']['typemanage_type_add_typelngmode'] ?></span></span>
			</div>
			<div class="sugtitle-line"></div>
			<div class="formdiv">
				<table border="0" width="100%">
					<tr class="trstyle2">
						<td width="15%" class="trtitle01"><?php echo $this->_tpl_vars['ST']['typemanage_type_add_lng'] ?></td>
						<td width="85%" class="trtitle02 colorgblue"><?php echo $this->_tpl_vars['typeread']['lng'] ?></td>
					</tr>
					<tr class="trstyle2">
						<td width="15%" class="trtitle01"><?php echo $this->_tpl_vars['ST']['typemanage_type_add_mid'] ?></td>
						<td width="85%" class="trtitle02 colorgblue"><?php echo $this->_tpl_vars['model'] ?></td>
					</tr>
					<tr class="trstyle2">
						<td width="15%" class="trtitle01"><?php echo $this->_tpl_vars['ST']['typemanage_type_add_dirname'] ?></td>
						<td width="85%" class="trtitle02 colorgblue"><?php echo $this->_tpl_vars['typeread']['dirname'] ?><input type="hidden" name="dirname" value="<?php echo $this->_tpl_vars['typeread']['dirname'] ?>"></td>
					</tr>
					<tr class="trstyle2">
						<td width="15%" class="trtitle01"><?php echo $this->_tpl_vars['ST']['typemanage_type_add_dirpath'] ?></td>
						<td width="85%" class="trtitle02 colorgblue"><?php echo $this->_tpl_vars['pathdir'] ?><?php if($this->_tpl_vars['is_alonelng']!=1){ ?><?php echo $this->_tpl_vars['typeread']['lng'] ?>/<?php } ?><?php echo $this->_tpl_vars['typeread']['dirpath'] ?></td>
					</tr>
					<tr class="trstyle2 <?php if($this->_tpl_vars['typeread']['upid']==0){ ?>displaynone<?php }else{ ?>displaytrue<?php } ?>">
						<td width="15%" class="trtitle01"><?php echo $this->_tpl_vars['ST']['typemanage_type_add_upid'] ?></td>
						<td width="85%" class="trtitle02">
							<?php if($this->_tpl_vars['typeread']['upid']==0){ ?>
							<input type="hidden" name="upid" value="0">
							<?php }else{ ?>
							<select size="1" name="upid" id="upid">
								<option value="0"><?php echo $this->_tpl_vars['ST']['typemanage_type_add_upid_option2'] ?></option>
								<?php if (count($this->_tpl_vars['typelist'])>0){$divid_list=1;for($list=0;$list<count($this->_tpl_vars['typelist']); $list++){?>
								<option <?php echo $this->_tpl_vars['typelist'][$list]['selected'] ?> value="<?php echo $this->_tpl_vars['typelist'][$list]['tid'] ?>">├─<?php echo $this->treelist($this->_tpl_vars['typelist'][$list]['level'],'─') ?> <?php echo $this->_tpl_vars['typelist'][$list]['typename'] ?></option>
								<?php }} ?>
							</select>
							<?php } ?>
						</td>
					</tr>
					<tr class="trstyle2">
						<td width="15%" class="trtitle01"><?php echo $this->_tpl_vars['ST']['typemanage_type_add_purview'] ?></td>
						<td width="85%" class="trtitle02">
							<select size="1" name="purview" id="purview">
								<option value="0"><?php echo $this->_tpl_vars['ST']['typemanage_type_add_purview_option'] ?></option>
								<?php if (count($this->_tpl_vars['memberpuvlist'])>0){$divid_list=1;for($list=0;$list<count($this->_tpl_vars['memberpuvlist']); $list++){?>
								<option <?php echo $this->_tpl_vars['memberpuvlist'][$list]['selected'] ?> value="<?php echo $this->_tpl_vars['memberpuvlist'][$list]['mcid'] ?>"><?php echo $this->_tpl_vars['memberpuvlist'][$list]['rankname'] ?></option>
								<?php }} ?>
							</select>
						</td>
					</tr>
				</table>
			</div>
			<div class="sugtitle">
				<span class="sugtitleicon"><span class="strong colorgorning2"><?php echo $this->_tpl_vars['ST']['typemanage_type_add_typenamekeytext'] ?></span></span>
			</div>
			<div class="sugtitle-line"></div>
			<div class="formdiv">
				<table border="0" width="100%">
					<tr class="trstyle2">
						<td width="15%" class="trtitle01"><?php echo $this->_tpl_vars['ST']['typemanage_type_add_editlist'] ?></td>
						<td width="85%" class="trtitle02">
							<input type="radio" value="1" name="beedit" checked="checked"/> <?php echo $this->_tpl_vars['ST']['is_yes'] ?>&nbsp;
							<input type="radio" value="0" name="beedit"/> <?php echo $this->_tpl_vars['ST']['is_no'] ?>
							<span class="cautiontitle"><?php echo $this->_tpl_vars['ST']['typemanage_type_add_editlist_mess'] ?></span>
						</td>
					</tr>
					<tr class="trstyle2">
						<td width="15%" class="trtitle01"><?php echo $this->_tpl_vars['ST']['typemanage_type_add_editlist2'] ?></td>
						<td width="85%" class="trtitle02">
							<input type="radio" value="1" name="beistemplatesedit"/> <?php echo $this->_tpl_vars['ST']['is_yes'] ?>&nbsp;
							<input type="radio" value="0" name="beistemplatesedit" checked="checked"/> <?php echo $this->_tpl_vars['ST']['is_no'] ?>
							<span class="cautiontitle"><?php echo $this->_tpl_vars['ST']['typemanage_type_add_editlist2_mess'] ?></span>
						</td>
					</tr>
					<tr class="trstyle2">
						<td width="15%" class="trtitle01"><?php echo $this->_tpl_vars['ST']['typemanage_type_add_typename'] ?></td>
						<td width="85%" class="trtitle02">
							<input type="text" name="typename" size="40" value="<?php echo $this->_tpl_vars['typeread']['typename'] ?>" maxlength="150" class="infoInput"/>
							<span class="cautiontitle"><?php echo $this->_tpl_vars['ST']['typemanage_type_add_typename_mess'] ?></span>
						</td>
					</tr>
					<tr class="trstyle2">
						<td width="15%" class="trtitle01"><?php echo $this->_tpl_vars['ST']['typemanage_type_add_keywords'] ?></td>
						<td width="85%" class="trtitle02">
							<input type="text" name="keywords" value="<?php echo $this->_tpl_vars['typeread']['keywords'] ?>" size="50" maxlength="50" class="infoInput"/>
							<a class="filecheck" href="#body" onclick="javascript:parent.windowsdig('<?php echo $this->_tpl_vars['ST']['selectkeyword_botton'] ?>','iframe:index.php?archive=seomanage&action=listtab&inputtext=keywords&lng=<?php echo $this->_tpl_vars['view']['lng'] ?>&listfunction=keywordlist&iframename='+self.frameElement.getAttribute('name'),'650px','380px','iframe');"><?php echo $this->_tpl_vars['ST']['selectkeyword_botton'] ?></a>
						</td>
					</tr>
					<tr class="trstyle2">
						<td width="15%" class="trtitle01"></td>
						<td width="85%" class="trtitle02">
							<select size="1" name="ktid" id="ktid" onchange="javascript:updatekeywords(this.value,'keywords')">
								<option selected="selected" value=""><?php echo $this->_tpl_vars['ST']['article_doc_add_ktid_option'] ?></option>
								<?php if (count($this->_tpl_vars['keyarray'])>0){$divid_list=1;for($list=0;$list<count($this->_tpl_vars['keyarray']); $list++){?>
								<option value="<?php echo $this->_tpl_vars['keyarray'][$list]['keyworklist'] ?>"><?php echo $this->_tpl_vars['keyarray'][$list]['keytypename'] ?>(<?php echo $this->cutstr($this->_tpl_vars['keyarray'][$list]['keyworklist'],25) ?>)</option>
								<?php }} ?>
							</select>
						</td>
					</tr>
					<tr class="trstyle2">
						<td width="15%" class="trtitle01"><?php echo $this->_tpl_vars['ST']['typemanage_type_add_description'] ?></td>
						<td width="85%" class="trtitle02">
							<textarea name="description" cols="50" rows="3" class="smallInput" style="width:95%"><?php echo $this->_tpl_vars['typeread']['description'] ?></textarea>
						</td>
					</tr>
					<tr class="trstyle2">
						<td width="15%" class="trtitle01"></td>
						<td width="85%" class="trtitle02">
							<select size="1" name="ktid" id="ktid" onchange="javascript:updatekeywords(this.value,'description')">
								<option selected="selected" value=""><?php echo $this->_tpl_vars['ST']['article_doc_add_ktid_option2'] ?></option>
								<?php if (count($this->_tpl_vars['keyarray'])>0){$divid_list=1;for($list=0;$list<count($this->_tpl_vars['keyarray']); $list++){?>
								<option value="<?php echo $this->_tpl_vars['keyarray'][$list]['description'] ?>"><?php echo $this->_tpl_vars['keyarray'][$list]['keytypename'] ?>(<?php echo $this->cutstr($this->_tpl_vars['keyarray'][$list]['description'],35) ?>)</option>
								<?php }} ?>
							</select>
						</td>
					</tr>
					<tr class="trstyle2">
						<td width="15%" class="trtitle01"></td>
						<td width="85%" class="trtitle02">
							<span class="cautiontitle"><?php echo $this->_tpl_vars['ST']['typemanage_type_add_description_mess'] ?></span>
						</td>
					</tr>
					<tr class="trstyle2">
						<td width="15%" class="trtitle01"><?php echo $this->_tpl_vars['ST']['typemanage_type_add_content'] ?></td>
						<td width="85%" class="trtitle02"><textarea name="content" cols="50" rows="5" class="smallInput" style="width:95%"><?php echo $this->_tpl_vars['typeread']['content'] ?></textarea></td>
					</tr>
					<tr class="trstyle2">
						<td width="15%" class="trtitle01"><?php echo $this->_tpl_vars['ST']['typemanage_type_add_typepic'] ?></td>
						<td width="85%" class="trtitle02">
							<input type="text" name="typepic" id="typepic" value="<?php echo $this->_tpl_vars['typeread']['typepic'] ?>" size="40" maxlength="50" class="infoInput"/>
							<a class="filecheck" onclick="javascript:parent.windowsdig('<?php echo $this->_tpl_vars['ST']['filemanage_select_title'] ?>','iframe:index.php?archive=filemanage&action=filemanage&listfunction=filelist&filetype=img&checkfrom=input&fileinputid=typepic&iframename='+self.frameElement.getAttribute('name'),'900px','480px','iframe')" href="#body"><?php echo $this->_tpl_vars['ST']['selectfile_botton'] ?></a>
							<span class="cautiontitle"><?php echo $this->_tpl_vars['ST']['typemanage_type_add_typepic_mess'] ?></span>
						</td>
					</tr>
					<tr class="trstyle2">
						<td width="15%" class="trtitle01"><?php echo $this->_tpl_vars['ST']['typemanage_type_add_typepic_size'] ?></td>
						<td width="85%" class="trtitle02">
							<input type="text" name="width" size="5" maxlength="4" value="<?php echo $this->_tpl_vars['typeread']['width'] ?>" class="infoInput"/> W
							<input type="text" name="height" size="5" maxlength="4" value="<?php echo $this->_tpl_vars['typeread']['height'] ?>" class="infoInput"/> H
							<span class="cautiontitle"><?php echo $this->_tpl_vars['ST']['typemanage_type_add_typepic_size_mess'] ?></span>
						</td>
					</tr>
				</table>
			</div>
			<div class="sugtitle">
				<span class="sugtitleicon"><span class="strong colorgorning2"><?php echo $this->_tpl_vars['ST']['typemanage_type_add_templatesurl'] ?></span></span>
			</div>
			<div class="sugtitle-line"></div>
			<div class="formdiv">
				<table border="0" width="100%">
					<tr class="trstyle2">
						<td width="15%" class="trtitle01"><?php echo $this->_tpl_vars['ST']['typemanage_type_add_styleid'] ?></td>
						<td width="85%" class="trtitle02">
							<select size="1" name="styleid" id="styleid" onchange="ondisplaymore(this.value,'#templatediv,#readtemplatediv,#filenamestylediv,#readnamestylediv,#isdatadirdiv','#typeurldiv','trstyle2 displaytrue','trstyle2 displaynone','#templatevalue','<?php echo $this->_tpl_vars['tempname']['typeindex'] ?>','<?php echo $this->_tpl_vars['tempname']['typelist'] ?>')" >
								<option <?php if($this->_tpl_vars['typeread']['styleid']==2){ ?>selected<?php } ?> value="2"><?php echo $this->_tpl_vars['ST']['typemanage_type_add_styleid_2'] ?></option>
								<option <?php if($this->_tpl_vars['typeread']['styleid']==1){ ?>selected<?php } ?> value="1"><?php echo $this->_tpl_vars['ST']['typemanage_type_add_styleid_1'] ?></option>
								<option <?php if($this->_tpl_vars['typeread']['styleid']==4){ ?>selected<?php } ?> value="4"><?php echo $this->_tpl_vars['ST']['typemanage_type_add_styleid_4'] ?></option>
								<option <?php if($this->_tpl_vars['typeread']['styleid']==3){ ?>selected<?php } ?> value="3"><?php echo $this->_tpl_vars['ST']['typemanage_type_add_styleid_3'] ?></option>
							</select>
						</td>
					</tr>
					<tr class="trstyle2<?php if($this->_tpl_vars['typeread']['styleid']==3){ ?> displaynone<?php } ?>" id="templatediv">
						<td width="15%" class="trtitle01"><?php echo $this->_tpl_vars['ST']['typemanage_type_add_template'] ?></td>
						<td width="85%" class="trtitle02">
							<input type="text" name="template" id="templatevalue" value="<?php echo $this->_tpl_vars['typeread']['template'] ?>" id="templatevalue" size="15" maxlength="80" value="list" class="infoInput"/>
							<a class="filecheck" href="#body" onclick="javascript:parent.windowsdig('<?php echo $this->_tpl_vars['ST']['selecttempfile_botton'] ?>','iframe:index.php?archive=templatemain&action=listtab&inputtext=templatevalue&listfunction=templatestab&lng=<?php echo $this->_tpl_vars['typeread']['lng'] ?>&typeclass=article&fileclass=&freshid='+Math.random()+'&iframename='+self.frameElement.getAttribute('name'),'650px','380px','iframe');"><?php echo $this->_tpl_vars['ST']['selecttempfile_botton'] ?></a>
							<span class="cautiontitle"><?php echo $this->_tpl_vars['ST']['typemanage_type_add_template_mess'] ?></span>
						</td>
					</tr>
					<tr class="trstyle2<?php if($this->_tpl_vars['typeread']['styleid']==3){ ?> displaynone<?php } ?>" id="readtemplatediv">
						<td width="15%" class="trtitle01"><?php echo $this->_tpl_vars['ST']['typemanage_type_add_readtemplate'] ?></td>
						<td width="85%" class="trtitle02">
							<input type="text" name="readtemplate" value="<?php echo $this->_tpl_vars['typeread']['readtemplate'] ?>" id="readtemplatevalue" size="15" maxlength="80" value="read" class="infoInput"/>
							<a class="filecheck" href="#body" onclick="javascript:parent.windowsdig('<?php echo $this->_tpl_vars['ST']['selecttempfile_botton'] ?>','iframe:index.php?archive=templatemain&action=listtab&inputtext=readtemplatevalue&listfunction=templatestab&lng=<?php echo $this->_tpl_vars['typeread']['lng'] ?>&typeclass=article&fileclass=read&freshid='+Math.random()+'&iframename='+self.frameElement.getAttribute('name'),'650px','380px','iframe');"><?php echo $this->_tpl_vars['ST']['selecttempfile_botton'] ?></a>
							<span class="cautiontitle"><?php echo $this->_tpl_vars['ST']['typemanage_type_add_template_mess'] ?></span>
						</td>
					</tr>
					<tr class="trstyle2<?php if($this->_tpl_vars['typeread']['styleid']==1 || $this->_tpl_vars['typeread']['styleid']==2){ ?> displaynone<?php } ?>" id="typeurldiv">
						<td width="15%" class="trtitle01"><?php echo $this->_tpl_vars['ST']['typemanage_type_add_url'] ?></td>
						<td width="85%" class="trtitle02">
							<input type="text" name="typeurl" value="<?php echo $this->_tpl_vars['typeread']['typeurl'] ?>" size="50" maxlength="80" class="infoInput"/>
							<span class="cautiontitle"><?php echo $this->_tpl_vars['ST']['typemanage_type_add_url_mess'] ?></span>
						</td>
					</tr>
					<tr class="trstyle2<?php if($this->_tpl_vars['typeread']['styleid']==3){ ?> displaynone<?php } ?>" id="filenamestylediv">
						<td width="15%" class="trtitle01"><?php echo $this->_tpl_vars['ST']['typemanage_type_add_filenamestyle'] ?></td>
						<td width="85%" class="trtitle02">
							<input type="text" name="filenamestyle" value="<?php echo $this->_tpl_vars['typeread']['filenamestyle'] ?>" size="25" maxlength="30" class="infoInput"/>
							<span class="cautiontitle"><?php echo $this->_tpl_vars['ST']['typemanage_type_add_filenamestyle_mess'] ?></span>
						</td>
					</tr>
					<tr class="trstyle2<?php if($this->_tpl_vars['typeread']['styleid']==3){ ?> displaynone<?php } ?>" id="readnamestylediv">
						<td width="15%" class="trtitle01"><?php echo $this->_tpl_vars['ST']['typemanage_type_add_readnamestyle'] ?></td>
						<td width="85%" class="trtitle02">
							<input type="text" name="readnamestyle" value="<?php echo $this->_tpl_vars['typeread']['readnamestyle'] ?>" size="25" maxlength="30" class="infoInput"/>
							<span class="cautiontitle"><?php echo $this->_tpl_vars['ST']['typemanage_type_add_readnamestyle_mess'] ?></span>
						</td>
					</tr>
					<tr class="trstyle2<?php if($this->_tpl_vars['typeread']['styleid']==3){ ?> displaynone<?php } ?>" id="isdatadirdiv">
						<td width="15%" class="trtitle01"><?php echo $this->_tpl_vars['ST']['typemanage_type_add_isdatadir'] ?></td>
						<td width="85%" class="trtitle02">
							<input type="radio" value="1" name="isdatadir"<?php if($this->_tpl_vars['typeread']['isdatadir']==1){ ?>checked="checked"<?php } ?>/> <?php echo $this->_tpl_vars['ST']['open_botton_title'] ?>&nbsp;
							       <input type="radio" value="0" name="isdatadir"<?php if($this->_tpl_vars['typeread']['isdatadir']==0){ ?>checked="checked"<?php } ?>/> <?php echo $this->_tpl_vars['ST']['close_botton_title'] ?>
							       <span class="cautiontitle"><?php echo $this->_tpl_vars['ST']['typemanage_type_add_isdatadir_mess'] ?></span>
						</td>
					</tr>
					<tr class="trstyle2">
						<td width="15%" class="trtitle01"><?php echo $this->_tpl_vars['ST']['typemanage_type_add_ismenu'] ?></td>
						<td width="85%" class="trtitle02">
							<input type="radio" value="1" name="ismenu"<?php if($this->_tpl_vars['typeread']['ismenu']==1){ ?>checked="checked"<?php } ?>/> <?php echo $this->_tpl_vars['ST']['open_botton_title'] ?>&nbsp;
							       <input type="radio" value="0" name="ismenu"<?php if($this->_tpl_vars['typeread']['ismenu']==0){ ?>checked="checked"<?php } ?>/> <?php echo $this->_tpl_vars['ST']['close_botton_title'] ?>
							       <span class="cautiontitle"><?php echo $this->_tpl_vars['ST']['typemanage_type_add_ismenu_mess'] ?></span>
						</td>
					</tr>
					<tr class="trstyle2">
						<td width="15%" class="trtitle01"><?php echo $this->_tpl_vars['ST']['typemanage_type_add_isaccessory'] ?></td>
						<td width="85%" class="trtitle02">
							<input type="radio" value="1" name="isaccessory"<?php if($this->_tpl_vars['typeread']['isaccessory']==1){ ?>checked="checked"<?php } ?>/> <?php echo $this->_tpl_vars['ST']['open_botton_title'] ?>&nbsp;
							<input type="radio" value="0" name="isaccessory"<?php if($this->_tpl_vars['typeread']['isaccessory']==0){ ?>checked="checked"<?php } ?>/> <?php echo $this->_tpl_vars['ST']['close_botton_title'] ?>
							<span class="cautiontitle"><?php echo $this->_tpl_vars['ST']['typemanage_type_add_isaccessory_mess'] ?></span>
						</td>
					</tr>
					<tr class="trstyle2">
						<td width="15%" class="trtitle01"><?php echo $this->_tpl_vars['ST']['typemanage_type_add_pageclass'] ?></td>
						<td width="85%" class="trtitle02">
							<input type="radio" value="1" name="pageclass"<?php if($this->_tpl_vars['typeread']['pageclass']==1){ ?> checked="checked"<?php } ?>/> <?php echo $this->_tpl_vars['ST']['typemanage_type_add_pageclass_1'] ?>&nbsp;
							<input type="radio" value="0" name="pageclass"<?php if($this->_tpl_vars['typeread']['pageclass']==0){ ?> checked="checked"<?php } ?>/> <?php echo $this->_tpl_vars['ST']['typemanage_type_add_pageclass_0'] ?>
							<span class="cautiontitle"><?php echo $this->_tpl_vars['ST']['typemanage_type_add_pageclass_mess'] ?></span>
						</td>
					</tr>
					<tr class="trstyle2">
						<td width="15%" class="trtitle01"><?php echo $this->_tpl_vars['ST']['typemanage_type_add_ispart'] ?></td>
						<td width="85%" class="trtitle02">
							<input type="radio" value="1" name="ispart"<?php if($this->_tpl_vars['typeread']['ispart']==1){ ?> checked="checked"<?php } ?>/> <?php echo $this->_tpl_vars['ST']['typemanage_type_add_ispart_1'] ?>&nbsp;
							<input type="radio" value="0" name="ispart"<?php if($this->_tpl_vars['typeread']['ispart']==0){ ?> checked="checked"<?php } ?>/> <?php echo $this->_tpl_vars['ST']['typemanage_type_add_ispart_0'] ?>
						</td>
					</tr>
				</table>
			</div>
		</div>
	</div>
	<div id="downbotton">
		<div id="subbotton">
			<table border="0" width="100%">
				<tr>
					<td id="right"><input type="submit" name="Submit" value="<?php echo $this->_tpl_vars['ST']['botton_edit'] ?>" class="buttonface" /></td>
					<td id="left" class="padding-left5"><input type="button" name="cancel" onClick="javascript:parent.onaletdoc();" value="<?php echo $this->_tpl_vars['ST']['botton_edit_reset'] ?>" class="buttonface" /></td>
				</tr>
			</table>
		</div>
	</div>
</form>
</body>

</html>